-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API for LCD hardware cursor #556
base: master
Are you sure you want to change the base?
Add API for LCD hardware cursor #556
Conversation
You need to wrap most of these macros in a |
done! |
Did you have any demo/example code that uses this btw? :) |
PETSCII Robots CE uses this to display search, move, and use cursors. The only difference is that it is implemented as functions in a header file ( |
I think the question was if you could add an example to the toolchain so other people can have a reference on how to use it 😉 |
7d2d877
to
3869193
Compare
Got it, I added an example to the PR. |
I think it would also be good to have methods to set the cursor clip amount and the cursor image index, as well as a way to explicitly set the data for a 32x32 or 64x64 image (the former allowing to specify an image index). You could still keep the existing generic data set method that checks the current cursor size and implies image index 0, if that makes things easier. Also accordingly, the cursor show/hide methods should be updated to avoid overwriting the image index (for example, with |
done! |
This PR adds API to make interacting with the LCD's hardware cursor easier.